package TCP.Test2;

import java.net.ServerSocket;
import java.net.Socket;

public class Test {
    public static void main(String[] args) throws Exception{
        ServerSocket serverSocket = new ServerSocket(8888);
        System.out.println("服务器启动中~");

        //打开输入流
        Socket socket = serverSocket.accept();
        Thread t = new Thread(new MsgThread(socket));
        t.start();
    }
}
